package com.rs.game.player.dialogues;

import com.rs.game.player.QuestManager.Quests;

public class Lollk extends Dialogue {
	
	private int npcId;

	@Override
	public void start() {
		npcId = (int) parameters[0];
		sendNPCDialogue(npcId, Expressions.NORMAL, "Thank the heavens, you saved me! I thought I'd be goblin lunch for sure!");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			sendPlayerDialogue(Expressions.NORMAL, "Are you okay?");
			stage = 0;
			break;
		case 0:
			sendNPCDialogue(npcId, Expressions.NORMAL, "I think so, I'd better run off home.");
			stage = 1;
			break;
		case 1:
			sendPlayerDialogue(Expressions.NORMAL, "That's right you get going, I'll catch up.");
			stage = 2;
			break;
		case 2:
			sendNPCDialogue(npcId, Expressions.NORMAL, "Thanks again, brave adventurer.");
			stage = 3;
			break;
		case 3:
			sendDialogue("The dwarf child runs off into the caverns.");
			player.getPackets().sendGameMessage("You untie the chile.");
			stage = 4;
			break;
		case 4:
			player.getQuestManager().setQuestStageAndRefresh(Quests.DWARF_CANNON, 6);
			end();
			break;
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
	
}